#ifndef __CHARGER_CONFIG_H__
#define __CHARGER_CONFIG_H__
#include "lv_drv_conf.h"

#if USE_POWER_MODULE

#include "power.h"

#define For_Watch_Battery   1
#define For_Watch_Battery_K_632832H  1

PMIC_CONFIG_T g_tgtPmdCfg[] =
{
  /*************************************************************************************
      Battery inital parameters
  **************************************************************************************/
#if For_Watch_Battery
  #if For_Watch_Battery_K_632832H
  {
    4200,
    3400,
    50,
    3600,
    3600,
    PMIC_CHARGER_300MA,
    300,
    PRE_CHARGER_100MA,
    TER_CHARGER_25MA,
    VBAT_VOL_4V40,
    TRICKIE_CHARGER_TOUT_15M,
    PRE_CHARGER_TOUT_60M,
    CCCV_TOUT_240M,
    620,
    130,
    0,
    1,
    {
      4337, 4322, 4310, 4298, 4286, 4274, 4262, 4249, 4237, 4225,
      4213, 4200, 4189, 4176, 4164, 4152, 4140, 4128, 4116, 4104,
      4093, 4081, 4070, 4058, 4046, 4035, 4025, 4015, 4006, 3995,
      3982, 3967, 3953, 3941, 3931, 3921, 3913, 3904, 3895, 3887,
      3878, 3870, 3862, 3854, 3847, 3840, 3832, 3826, 3819, 3814,
      3808, 3801, 3796, 3791, 3785, 3780, 3775, 3771, 3766, 3762,
      3757, 3753, 3749, 3746, 3742, 3738, 3734, 3731, 3728, 3725,
      3722, 3719, 3717, 3713, 3711, 3708, 3704, 3701, 3697, 3693,
      3689, 3684, 3678, 3672, 3666, 3659, 3652, 3645, 3641, 3637,
      3634, 3629, 3623, 3613, 3595, 3558, 3500, 3498, 3495, 3490,   /*0*/ /*shutdown 0% use 3.49v*/
      3450
    },
    1,
    { 975,1110,1267,1451,1668,1924,2227,2588,3019,3536,4158,//100 ~ 50
      4911,5826,6942,8312,10000,12090,14700,17960,22070,27280, //45 ~ 0
      33930,42450,53460,67790,86560,111300,144300,188500
    },//-5 ~ -40
  },

  {
    4400,
    3400,
    50,
    3600,
    3600,
    PMIC_CHARGER_300MA,
    300,
    PRE_CHARGER_100MA,
    TER_CHARGER_25MA,
    VBAT_VOL_4V40,
    TRICKIE_CHARGER_TOUT_15M,
    PRE_CHARGER_TOUT_60M,
    CCCV_TOUT_240M,
    620,
    130,
    0,
    1,
    {
      0//need add battery discharge table
    },
    1,
    {
      0//need add temp data
    },//-5 ~ -40
  },
  #endif
    #if For_Watch_Battery_Y_653028V
  {
    4350,
    3400,
    30,
    3600,
    3600,
    PMIC_CHARGER_300MA,
    500,
    PRE_CHARGER_100MA,
    TER_CHARGER_25MA,
    VBAT_VOL_4V35,
    TRICKIE_CHARGER_TOUT_15M,
    PRE_CHARGER_TOUT_60M,
    CCCV_TOUT_240M,
    420,
    200,
    1,
    1,
    {
      4315, 4252, 4233, 4218, 4203, 4189, 4176, 4165, 4156, 4145,
        4133, 4121, 4110, 4098, 4089, 4080, 4071, 4061, 4051, 4042,
        4032, 4021, 4010, 4000, 3992, 3984, 3974, 3963, 3950, 3939,
        3930, 3921, 3913, 3904, 3896, 3887, 3879, 3873, 3866, 3858,
        3850, 3842, 3836, 3831, 3824, 3817, 3812, 3806, 3800, 3794,
        3787, 3781, 3775, 3771, 3768, 3763, 3758, 3754, 3751, 3747,
        3743, 3739, 3736, 3733, 3729, 3726, 3723, 3718, 3714, 3710,
        3708, 3706, 3702, 3699, 3694, 3691, 3689, 3686, 3682, 3677,
        3674, 3669, 3664, 3657, 3650, 3645, 3638, 3630, 3623, 3615,
        3609, 3605, 3600, 3591, 3577, 3555, 3520, 3464, 3384, 3003,
        3000
    },
    0,
    {0},
  },
  #endif
#else
  #if For_Battery_M20H
  {
    4200,
    3400,
    33,
    3400,
    3400,
    PMIC_CHARGER_500MA,
    800,
    PRE_CHARGER_150MA,
    TER_CHARGER_50MA,
    VBAT_VOL_4V20,
      TRICKIE_CHARGER_TOUT_15M,
      PRE_CHARGER_TOUT_60M,
      CCCV_TOUT_240M,
      60,
      #if defined(CONFIG_BOARD_CRANEM_EVB)
    200,
    #else
      150,
      #endif
      0,
      1,
    {
      4181,4164,4146,4118,4106,4094,4074,4065,4055,4045,
      4035,4016,4007,3998,3981,3974,3967,3960,3952,3937,
      3930,3923,3909,3902,3895,3889,3883,3869,3863,3857,
      3846,3840,3835,3830,3825,3818,3815,3812,3810,3809,
      3808,3805,3803,3795,3788,3782,3769,3761,3753,3744,
      3736,3718,3709,3701,3687,3681,3675,3670,3665,3656,
      3652,3648,3641,3638,3635,3632,3629,3622,3619,3617,
      3611,3608,3606,3603,3600,3594,3591,3588,3582,3578,
      3574,3569,3564,3553,3547,3541,3530,3523,3516,3509,
      3502,3485,3476,3468,3453,3447,3441,3431,3423,3400,//3416
      3388
    },
    0,
    {0},
  },
  #else
  {
    4200,
    3400,
    50,
    3000,
    3400,
    PMIC_CHARGER_500MA,
    1000,
    PRE_CHARGER_100MA,
    TER_CHARGER_50MA,
    VBAT_VOL_4V20,
      TRICKIE_CHARGER_TOUT_15M,
      PRE_CHARGER_TOUT_60M,
      CCCV_TOUT_240M,
      150,
      200,
      0,
      0,
    {0},
    0,
    {0},
  },
  #endif
#endif
};

#endif
#endif
